{%extends file="user/page/layout.tpl"%}


{%block name="sub-head-static"%}
    {%require name="user:static/redeemdemand/redeemdemand.less"%}
    {%require name="user:static/redeemdemand/redeemdemand.js"%}
    <script>
        P.data('available_amount',{%$data.total%});
    </script>
{%/block%}

{%block name="right-content"%}
    <div class="page-redeemdemand">
        <div class="block redeem-block">
            <div class="title">活期赎回</div>
            <div class="line">
                <span class="sub-title">可赎回份额：</span>
                <span class="available-amount">￥{%$data.total|format_amount%}</span>
            </div>
            <div class="line">
                <span class="sub-title">本次赎回份额：</span>
                <div class="money-input">
                    <span>￥</span>
                    <input type="text" class="amount">
                </div>
                <span class="error-tip">赎回金额填写错误</span>
            </div>
            <div class="line">
                {%if $data.total>0%}
                <button class="btn btn-large btn-main btn-redeem">赎回</button>
                {%else%}
                <button class="btn btn-large btn-disable">赎回</button>
                {%/if%}
            </div>
        </div>

        <div class="block tip-block">
            <h5>温馨提示：</h5>
            <p>1、真融宝活期可实时赎回到我的钱包，并提现到我的银行卡。</p>
            <p>2、一旦赎回，需再次抢购。</p>
            <p>3、当您赎回活期时，为了保障您的每日收益，真融宝会优先从收益资金里赎回，当收益资金不足时，剩馀赎回资金才从活期持有份额里扣除。</p>
        </div>

    </div>
{%/block%}